/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.championship;

/**
 *
 * @author Valdigleis
 */
public class Game {

    public Game() {
    }
    
    //Função Jogo
    public void game1(Gamer gamerA, Gamer gamerB){
        if(gamerA.getAttPriority() > gamerB.getAttPriority()){
            int n = gamerA.getVictory() + 1;
            gamerA.setVictory(n);
        }else{
             if(gamerB.getAttPriority() > gamerA.getAttPriority()){
                 int n = gamerB.getVictory() + 1;
                 gamerB.setVictory(n);
             }else{
                 
             }
        }
    }
    
    public void game2(Gamer gamerA, Gamer gamerB){
        if(gamerA.getAttPre() > gamerB.getAttPre()){
            int n = gamerA.getVictory() + 1;
            gamerA.setVictory(n);
        }else{
             if(gamerB.getAttPre() > gamerA.getAttPre()){
                 int n = gamerB.getVictory() + 1;
                 gamerB.setVictory(n);
             }else{
             }
        }
    }
    
     public void game3(Gamer gamerA, Gamer gamerB){
        if(gamerA.getAttCre() > gamerB.getAttCre()){
            int n = gamerA.getVictory() + 1;
            gamerA.setVictory(n);
        }else{
             if(gamerB.getAttCre() > gamerA.getAttCre()){
                 int n = gamerB.getVictory() + 1;
                 gamerB.setVictory(n);
             }else{
             }
        }
    }
     
     public void game4(Gamer gamerA, Gamer gamerB){
        if(gamerA.getAttFormation()> gamerB.getAttFormation()){
            int n = gamerA.getVictory() + 1;
            gamerA.setVictory(n);
        }else{
             if(gamerB.getAttFormation()> gamerA.getAttFormation()){
                 int n = gamerB.getVictory() + 1;
                 gamerB.setVictory(n);
             }else{
             }
        }
    }
}
